package com.wzy.business.base.photo

import com.wzy.business.base.photo.bean.FileUpLoad
import com.wzy.business.base.photo.bean.FileUpLoadResult
import com.wzy.business.base.photo.bean.LoginDuck
import com.wzy.business.base.photo.bean.LoginDuckResult
import okhttp3.MultipartBody
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface APIService {


    //登陆
    @POST("tokens")
    suspend fun login(@Body loginDuck: LoginDuck): LoginDuckResult

    //上传图片
    @Multipart
    @POST("upload")
    suspend fun uploadImage(@Part file: MultipartBody.Part): FileUpLoadResult

}